package 设计模式.结构型.Adapter适配器.stardand.classAdapter;

/**
 * 适配器
 *
 * @author: 张从龙
 * time: 2022/8/15 13:29
 */
public class VoltageAdapter extends Power220V implements Power5V {

    @Override
    public int output5V() {
        final int oldsrc = output220V();
        int newsrc = oldsrc / 44;

        System.out.println("电压：" + newsrc + "V");
        return newsrc;
    }
}
